1 /*-- 2 Copyright (C) 2005 Tim Solley. 3 All rights reserved. 4 5 Redistribution and use in source and binary forms, with or without 6 modification, are permitted provided that the following conditions 7 are met: 8 9 1. Redistributions of source code must retain the above copyright 10 notice, this list of conditions, and the following disclaimer. 11 12 2. Redistributions in binary form must reproduce the above copyright 13 notice, this list of conditions, and the disclaimer that follows 14 these conditions in the documentation and/or other materials 15 provided with the distribution. 16 17 3. The name "Deadbolt" may be used to endorse or promote products 18 derived from this software without prior written permission. 19 20 4. Products derived from this software may not be called "Deadbolt", nor 21 may "Deadbolt" appear in their name, without prior written permission 22 from the Deadbolt Project Management timsolley@yahoo.com. 23 24 In addition, we request (but do not require) that you include in the 25 end-user documentation provided with the redistribution and/or in the 26 software itself an acknowledgement equivalent to the following: 27 "This product includes software developed by the 28 Deadbolt Project (http://deadbolt.sourceforge.net/)." 29 Alternatively, the acknowledgment may be graphical using the logos 30 available at http://deadbolt.sourceforge.net. 31 32 THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED 33 WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 34 OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 35 DISCLAIMED. IN NO EVENT SHALL THE DEADBOLT AUTHORS OR THE PROJECT 36 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 37 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 38 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF 39 USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 40 ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 41 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 42 OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 43 SUCH DAMAGE. 44 45 This software consists of voluntary contributions made by many 46 individuals on behalf of the Deadbolt Project and was originally 47 created by Tim Solley timsolley@yahoo.com. For more information 48 on the Deadbolt Project, please see <http://deadbolt.sourceforge.net/>. 49 */ 50 51 package net.sf.deadbolt.model; 52 53 /*** 54 * This class is a value object containing the information about a URL pattern 55 * to Room mapping. A <code>Collection</code> of these objects is used to find 56 * the proper Room to handle a request. 57 * 58 * @author Tim Solley <timsolley@yahoo.com> 59 */ 60 public class URLMapping { 61 private String urlPattern; 62 63 private Room room; 64 65 /*** 66 * @return Returns the room. 67 */ 68 public Room getRoom() { 69 return room; 70 } 71 72 /*** 73 * @param room 74 * The room to set. 75 */ 76 public void setRoom(Room room) { 77 this.room = room; 78 } 79 80 /*** 81 * @return Returns the urlPattern. 82 */ 83 public String getUrlPattern() { 84 return urlPattern; 85 } 86 87 /*** 88 * @param urlPattern 89 * The urlPattern to set. 90 */ 91 public void setUrlPattern(String urlPattern) { 92 this.urlPattern = urlPattern; 93 } 94 }